package cn.tedu.spring.eg11;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Student {
    @Value("张三")
    private String sName;
    @Value("8")
    private Integer sAge;
    @Value("2年级2班")
    private String sClass;

    @Override
    public String toString() {
        return "Student{" +
                "sName='" + sName + '\'' +
                ", sAge=" + sAge +
                ", sClass='" + sClass + '\'' +
                '}';
    }
}
